home *** CD-ROM | disk | FTP | other *** search
Wrap
INI File | 1994-08-11 | 30.1 KB | 2,152 lines
[ver] 4 [sty] jmacro.sty [files] [charset] 82 SHIFTJIS (Windows) [revisions] 0 [prn] QMS-PS 810 [port] LPT1: [lang] 1 [fldnames] ╠¿░┘─▐1 ╠¿░┘─▐2 ╠¿░┘─▐3 ╠¿░┘─▐4 ╠¿░┘─▐5 ╠¿░┘─▐6 ╠¿░┘─▐7 ╠¿░┘─▐8 [desc] üùè╓Éöé≡Ägùpé╡é╜ëëÄZ 775429722 42 732570070 365 8 517 4188 14 14 1 [fopts] 0 1 0 0 [lnopts] 2 Body Text 1 [docopts] 5 2 [GramStyle] [tag] û{ò╢ 2 [fnt] û╛Æ⌐ 200 0 32768 [algn] 1 2 0 0 0 [spc] 17 204 2 0 0 2 100 [brk] 68 [line] 8 0 2 0 1 0 0 15 15 2 [spec] 0 0 0 2 1 0 0 0 1 [nfmt] 280 1 2 . , \ û{ò╢ 0 0 [tag] ╠º▌╕╝«▌ 3 [fnt] û╛Æ⌐ 200 0 32769 [algn] 1 2 0 0 0 [spc] 17 204 2 0 0 2 100 [brk] 68 [line] 8 0 2 0 1 0 0 15 15 2 [spec] 0 0 0 2 1 0 0 0 1 [nfmt] 280 1 2 . , \ û{ò╢ 0 0 [tag] âëâxâï 4 [fnt] û╛Æ⌐ 240 0 32769 [algn] 1 2 0 0 0 [spc] 17 204 2 0 0 2 100 [brk] 68 [line] 8 0 2 0 1 0 0 15 15 2 [spec] 0 0 0 2 1 0 0 0 1 [nfmt] 280 1 2 . , \ û{ò╢ 0 0 [tag] âwâbâ_ 5 [fnt] û╛Æ⌐ 200 0 32769 [algn] 2 2 0 0 0 [spc] 17 204 2 0 0 2 100 [brk] 68 [line] 8 0 2 0 1 0 0 15 15 2 [spec] 0 0 0 2 1 0 0 0 1 [nfmt] 280 1 2 . , \ âwâbâ_ 0 0 [tag] Number List 6 [fnt] Times New Roman 240 0 49152 [algn] 1 1 360 360 360 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 0 0 10 10 1 [spec] 0 0 <*:>. 360 1 1 0 16 0 1 [nfmt] 272 1 2 . , $ Number List 0 0 [tag] Subhead 7 [fnt] Times New Roman 240 0 49155 [algn] 1 1 0 0 0 [spc] 33 273 1 72 72 1 100 [brk] 4 [line] 8 0 1 0 1 0 0 10 10 1 [spec] 0 2 0 1 1 0 0 0 1 [nfmt] 272 1 2 . , $ Subhead 0 0 [tag] Title 8 [fnt] Arial 360 0 16385 [algn] 4 1 0 0 0 [spc] 33 446 1 144 72 1 100 [brk] 16 [line] 8 0 1 0 1 0 0 10 10 1 [spec] 0 1 0 1 1 0 0 0 1 [nfmt] 272 1 2 . , $ Title 0 0 [tag] Header 9 [fnt] Times New Roman 240 0 49152 [algn] 1 1 0 0 0 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 0 0 10 10 1 [spec] 0 0 0 1 1 0 0 0 1 [nfmt] 280 1 2 . , $ Header 0 0 [tag] Footer 11 [fnt] Times New Roman 240 0 49152 [algn] 1 1 0 0 0 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 0 0 10 10 1 [spec] 0 0 0 1 1 0 0 0 1 [nfmt] 280 1 2 . , $ Footer 0 0 [tag] Body Text 12 [fnt] Times New Roman 240 0 49152 [algn] 1 1 0 0 0 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 0 0 10 10 1 [spec] 0 0 0 1 1 0 0 0 1 [nfmt] 280 1 2 . , $ Body Text 0 0 [tag] Body Single 0 [fnt] Times New Roman 240 0 49152 [algn] 1 1 0 0 0 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 0 0 10 10 1 [spec] 0 0 0 1 1 0 0 0 1 [nfmt] 280 1 2 . , $ Body Single 0 0 [tag] Bullet 0 [fnt] Times New Roman 240 0 49152 [algn] 1 1 0 288 288 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 0 0 10 10 1 [spec] 0 0 <*0> 360 1 1 0 0 0 1 [nfmt] 272 1 2 . , $ Bullet 0 0 [tag] Bullet 1 0 [fnt] Times New Roman 240 0 49152 [algn] 1 1 288 288 288 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 0 0 10 10 1 [spec] 0 0 <*5> 0 1 1 0 0 0 1 [nfmt] 280 1 2 . , $ Bullet 1 0 0 [lay] Standard 513 [rght] 15840 12240 1 1440 1440 1 1440 1440 0 0 0 0 0 2 1 1440 10800 12 1 720 1 1440 1 2160 1 2880 1 3600 1 4320 1 5040 1 5760 1 6480 1 7200 1 7920 1 8640 [hrght] [lyfrm] 1 11200 0 0 12240 1440 0 1 3 0 0 0 0 0 0 0 0 0 1 [frmlay] 1440 12240 1 1440 72 1 792 1440 0 0 0 0 1 0 1 1440 10800 2 2 4680 3 9360 [txt] @û{ò╢@Peyton McManus @û{ò╢@Lotus WPD > [frght] [lyfrm] 1 13248 0 14400 12240 15840 0 1 3 0 0 0 0 0 0 0 0 0 2 [frmlay] 15840 12240 1 1440 792 1 14472 1440 0 0 0 0 1 0 1 1440 10800 2 2 4680 3 9360 [txt] > [elay] [l1] 0 [pg] 1 52 0 5 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0 [edoc] @û{ò╢@' Macro to return the value of an @ function. Demonstrates basic use of Ltsce01.dll @û{ò╢@ @û{ò╢@Define NumDec 2 @û{ò╢@Define EM_LimitText 1045 @û{ò╢@Define VK_F1 112 @û{ò╢@ @û{ò╢@Declare DataChange(Hdlg, id, value) @û{ò╢@Declare FontDlg(Action, Hdlg, id) @û{ò╢@Declare CellEngine(action,Formula) @û{ò╢@Declare ManageList(Hdlg, id, section) @û{ò╢@Declare RadioCall(Hdlg, id, value) @û{ò╢@Declare DoIt(Hdlg, id) @û{ò╢@ @û{ò╢@Define Desc "<:f,1û╛Æ⌐,>ÉöÄ«é⌐üùè╓Éöé≡ôⁿù═é╡é─é¡é╛é│éó<:f>"'Enter the formula or @function below:" @û{ò╢@Define Desc2 "<:f,1û╛Æ⌐,>ÄOé┬é╠Éöé╠ìçîvé≡éRö{é╖éΘé╚éτüA<:f>@sum(12,22,34)*3<:f,1û╛Æ⌐,>é╞ôⁿù═<:f>"'To calculate the sum of three numbers multiplied by 12, type @û{ò╢@ @û{ò╢@Define HelpText "<:f,1û╛Æ⌐,>üùè╓Éöé╠âèâXâgé⌐éτÉöÄ«é╔æ}ôⁿé╖éΘé▒é╞é¬é┼é½é▄é╖<:f>"'Choose @Functions to get a list of available @functions to insert into your formula." @╠º▌╕╝«▌@Function Main() @û{ò╢@DefStr hInstance; @û{ò╢@Mac = GetRunningMacroFile$() @û{ò╢@FontDlg(1,0,0) @û{ò╢@CellEngine(1,0) @û{ò╢@FillEdit(1001, Desc) @û{ò╢@FillEdit(1003, Desc2) @û{ò╢@FillEdit(1004, HelpText) @û{ò╢@SetDlgCallBack(0,"{Mac}!InitDlg") @û{ò╢@SetDlgCallBack(22,"{Mac}!FunButton") @û{ò╢@SetDlgCallBack(8000,"{Mac}!DataChange") @û{ò╢@DlgKeyInterrupt(VK_F1, "{mac}!DisplayHelp") @û{ò╢@Box = DialogBox(".","Deprec") @û{ò╢@If Box = 3 @û{ò╢@ Answer = GetDialogField$(8004) @û{ò╢@ ClipBoardWrite(Answer,1) @û{ò╢@Endif @û{ò╢@FontDlg(4,0,0) ' Destroy the small font object and free the global variable @û{ò╢@CellEngine(0,0) ' Shut down the engine and free the global variable @û{ò╢@End function @û{ò╢@ @û{ò╢@ @╠º▌╕╝«▌@Function DataChange(Hdlg, id, value) @û{ò╢@IgnoreKeyBoard(2) @û{ò╢@DefStr Allowance; @û{ò╢@Formula = GetDlgItemText(hDlg, 8000) @û{ò╢@Define Form "@IF({Formula}<<1E49,@Round({Formula},2),@ERR)" @û{ò╢@' the formula traps for values @û{ò╢@Answer = CellEngine(3,Form) @û{ò╢@If IsNumeric(Answer) @û{ò╢@ Answer = Answer * 1 @û{ò╢@ SetDlgItemText(hDlg, 8004, FormatNum$("","",NumDec,Answer)) @û{ò╢@Else @û{ò╢@ SetDlgItemText(hDlg, 8004, Answer) @û{ò╢@Endif @û{ò╢@<:#239,9360> @û{ò╢@<:#239,9360>End Function @û{ò╢@<:#239,9360> @╠º▌╕╝«▌@<:#240,9360>Function InitDlg(hDlg, id, value) @û{ò╢@<:#240,9360>' use the fontdlg function to display the following control with a small font @û{ò╢@<:#240,9360>IgnoreKeyBoard(2) @û{ò╢@<:#240,9360>HourGlass(on) @û{ò╢@<:#240,9360>For t = 1000 to 1004 @û{ò╢@<:#240,9360> FontDlg(3, Hdlg, T) @û{ò╢@<:#240,9360>Next @û{ò╢@<:#240,9360>FontDlg(3, Hdlg, 8000) @û{ò╢@<:#240,9360>'SetDlgItemText(hDlg, 8004, FormatNum$("","",NumDec,0)) @û{ò╢@<:#240,9360>AppSendMessage(GetDlgItem(Hdlg, 8000),EM_LimitText,120,0) @û{ò╢@<:#240,9360>HourGlass(off) @û{ò╢@<:#240,9360>End Function @û{ò╢@<:#240,9360> @╠º▌╕╝«▌@<:#240,9360>Function FunButton(Hdlg, id, value) @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>DoIt(Hdlg, 8000) @û{ò╢@<:#240,9360>DataChange(Hdlg, 8000,GetDlgItemText(Hdlg, 8000)) @û{ò╢@<:#240,9360>End Function @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @╠º▌╕╝«▌@<:#240,9360>function DisplayHelp() @û{ò╢@<:#240,9360>' two defines needed for help. The help name and panel number are defined above @û{ò╢@<:#240,9360>define FindWindowa() DllCall("user,FindWindow,HCC", %1, %2) @û{ò╢@<:#240,9360>define WinHelpa(hWnd, file, cmd, ptr) DllCall("user,WinHelp,HHCHJ", %1, %2, %3, %4) @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>prohWnd = FindWindowa("AmiProWndA", 0) @û{ò╢@<:#240,9360>helpfile = strcat$(GetAmiDirectory$(), "HelpPack.hlp") @û{ò╢@<:#240,9360>PanelNum= 100 @û{ò╢@<:#240,9360>WinHelpa(prohWnd, helpfile, 0x0001, Panelnum) @û{ò╢@<:#240,9360>end function @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:p<* >> @╠º▌╕╝«▌@<:#240,9360>Function CellEngine(Action, Formula) @û{ò╢@<:#240,9360>'Available Actions @û{ò╢@<:#240,9360>' 1 Start the engine and allocate globalvar @û{ò╢@<:#240,9360>' 2 Return the handle to the instance of the sheet @û{ò╢@<:#240,9360>' 3 Pass a formula as the second param @û{ò╢@<:#240,9360>' 0 Shut everything down @û{ò╢@<:#240,9360>' Default Expect a formula and return an answer @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>' these defines may be useful at the beginning of your macro @û{ò╢@<:#240,9360>Define StartEngine 1 @û{ò╢@<:#240,9360>Define GetInstance 2 @û{ò╢@<:#240,9360>Define PassFormula 3 @û{ò╢@<:#240,9360>Define CloseEngine 0 @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>Define CECREATEINSTANCE(LPHANDLE) DllCall("LTSCE01.DLL,CECREATEINSTANCE,HO",%1) @û{ò╢@<:#240,9360>Define CEDESTROYINSTANCE(HANDLE) DllCall("LTSCE01.DLL,CEDESTROYINSTANCE,HH",%1) @û{ò╢@<:#480,9360>Define CECALCNOW(HINSTANCE, lpFormula, lpOutPut) DllCall("LTSCE01.DLL,CECALCNOW,HHCC",%1,%2,%3) @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>DefStr hInstance, Answer, Var; @û{ò╢@<:#240,9360>Mac = GetRunningMacroFile$() @û{ò╢@<:#240,9360>GlobalInstance = StrCat$(Mac,"hIstance") @û{ò╢@<:#240,9360>AmiDir = GetAmiDirectory$() @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>Switch Action @û{ò╢@<:#240,9360> Case 1 @û{ò╢@<:#240,9360> ' start the engine @û{ò╢@<:#240,9360> LibId = DLLLoadLib("{AmiDir}LTSCE01.DLL","CECreateInstance","HO") @û{ò╢@<:#240,9360> If LibId = 0 @û{ò╢@<:#480,9360> Message("LTSCE01.DLL<:f,1û╛Æ⌐,>é¬î⌐é┬é⌐éΦé▄é╣é± <:f><:f,1û╛Æ⌐,>Windows├▐¿┌╕─╪░é╔║╦▀░é╡é─é¡é╛é│éó<:f>") ' not found. Copy the dll to your windows directory @û{ò╢@<:#240,9360> Return -1; @û{ò╢@<:#240,9360> Endif @û{ò╢@<:#240,9360> RetVal = CECREATEINSTANCE(&hInstance) @û{ò╢@<:#240,9360> AllocGlobalVar("{GlobalInstance}",1) @û{ò╢@<:#240,9360> AllocGlobalVar("{Mac}LibId",1) @û{ò╢@<:#240,9360> SetGlobalVar("{Mac}Libid",LibId) @û{ò╢@<:#240,9360> SetGlobalVar("{GlobalInstance}",hInstance) @û{ò╢@<:#240,9360> Return hInstance; @û{ò╢@<:#240,9360> Break; @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> Case 2 @û{ò╢@<:#240,9360> ' return the handle to the instance of the sheet @û{ò╢@<:#240,9360> AllocGlobalVar("{GlobalInstance}",1) @û{ò╢@<:#240,9360> hInstance = GetGlobalVar$("{GlobalInstance}") @û{ò╢@<:#240,9360> Return hInstance; @û{ò╢@<:#240,9360> Break; @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> Case 3; @û{ò╢@<:#240,9360> ' Calculate the formula and return the answer @û{ò╢@<:#240,9360> AllocGlobalVar("{GlobalInstance}",1) @û{ò╢@<:#240,9360> hInstance = GetGlobalVar$("{GlobalInstance}") @û{ò╢@<:#240,9360> CECalcNow(hInstance,"{Formula}",&Answer) @û{ò╢@<:#226,9360> Return Answer; @û{ò╢@<:#240,9360> Break; @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> Case 0 @û{ò╢@<:#240,9360> ' destroy the instance of the sheet and free the global var and libid @û{ò╢@<:#240,9360> AllocGlobalVar("{GlobalInstance}",1) @û{ò╢@<:#240,9360> AllocGlobalVar("{Mac}LibId",1) @û{ò╢@<:#240,9360> hInstance = GetGlobalVar$("{GlobalInstance}") @û{ò╢@<:#240,9360> LibId = GetGlobalVar$("{Mac}LibId") @û{ò╢@<:#240,9360> If hInstance @û{ò╢@<:#240,9360> CEDestroyInstance(hInstance) @û{ò╢@<:#240,9360> DllFreeLib(Libid) @û{ò╢@<:#240,9360> Endif @û{ò╢@<:#240,9360> FreeGlobalVar("{GlobalInstance}") @û{ò╢@<:#240,9360> FreeGlobalVar("{Mac}LibId") @û{ò╢@<:#240,9360> Break; @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> Default @û{ò╢@<:#240,9360>EndSwitch @û{ò╢@<:#240,9360>End Function @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @╠º▌╕╝«▌@<:#240,9360>Function FontDlg(Action, Hdlg, id) @û{ò╢@<:#240,9360>' 1 Create a font and allocvar @û{ò╢@<:#240,9360>' 2 Return the handle of the create font @û{ò╢@<:#240,9360>' 3 Set the id specified to the font @û{ò╢@<:#240,9360>' 4 Freeglobalvar and delete created object @û{ò╢@<:#240,9360> @û{ò╢@<:#480,9360>define CreateFontDLG() DllCall("gdi,CreateFont,HHHHHHHHHHHHHHC", %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14) @û{ò╢@<:#240,9360>define DeleteObjectDLG(handle) DllCall("gdi,DeleteObject,HH", %1) @û{ò╢@<:#480,9360>define SendMessageDLG(hwnd, msg, wpara, lparm) DllCall("user,SendMessage,HHHHJ", %1, %2, %3, %4) @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>Switch Action @û{ò╢@<:#240,9360> Case 1 ' Create the font and store it @û{ò╢@<:#480,9360> Font = CreateFontDLG(13, 0, 0, 0, 400, 0, 0, 0, 128, 0, 0, 0, 32, "System") 'Helv @û{ò╢@<:#240,9360> AllocGlobalVar("FontHandle",1) @û{ò╢@<:#240,9360> If Font @û{ò╢@<:#240,9360> SetGlobalVar("FontHandle",Font) @û{ò╢@<:#240,9360> Return Font @û{ò╢@<:#240,9360> Else @û{ò╢@<:#240,9360> Return 0; ' no font @û{ò╢@<:#240,9360> Endif @û{ò╢@<:#240,9360> Break; @û{ò╢@<:#240,9360> Case 2 ' Return the handle to the font @û{ò╢@<:#240,9360> Handle = GetGlobalVar$("FontHandle") @û{ò╢@<:#240,9360> If Handle @û{ò╢@<:#226,9360> Return Handle @û{ò╢@<:#240,9360> Else @û{ò╢@<:#240,9360> Return 0 @û{ò╢@<:#240,9360> Endif @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> Case 3 ' Set the id to the font @û{ò╢@<:#240,9360> Handle = GetGlobalVar$("FontHandle") @û{ò╢@<:#240,9360> If Handle @û{ò╢@<:#240,9360> IdControl = GetDlgITem(Hdlg, id) @û{ò╢@<:#240,9360> SendMessageDlg(idControl, 0x30, Handle, 0) @û{ò╢@<:#240,9360> Return 1 @û{ò╢@<:#240,9360> Else @û{ò╢@<:#240,9360> Return 0 @û{ò╢@<:#240,9360> Endif @û{ò╢@<:#240,9360> Break; @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> Case 4 ' Delete the font and clear the var @û{ò╢@<:#240,9360> Handle = GetGlobalVar$("FontHandle") @û{ò╢@<:#240,9360> If Handle @û{ò╢@<:#240,9360> DeleteObjectDLG(Handle) @û{ò╢@<:#240,9360> Stat = 1 @û{ò╢@<:#240,9360> Else @û{ò╢@<:#240,9360> Stat = 0 @û{ò╢@<:#240,9360> Endif @û{ò╢@<:#240,9360> FreeGlobalVar("FontHandle") @û{ò╢@<:#240,9360> Return Stat @û{ò╢@<:#240,9360> Default @û{ò╢@<:#240,9360>EndSwitch @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>End Function @û{ò╢@<:#240,9360> @╠º▌╕╝«▌@<:#240,9360>Function DoIt(Hdlg, Id) @û{ò╢@<:#240,9360>Define EnableWindowIns() DllCall("User,EnableWindow,AHA",%1,%2) @û{ò╢@<:#240,9360>Define SetFocusIns() DllCall("user,SetFocus,HH",%1) @û{ò╢@<:#240,9360>Define LB_RESETCONTENT 0x405 @û{ò╢@<:#240,9360>Define ExID 8010 @û{ò╢@<:#240,9360>Define DescID 1001 @û{ò╢@<:#240,9360>Define FinancialRadio 20 @û{ò╢@<:#240,9360>Define StatRadio 21 @û{ò╢@<:#240,9360>Define MathRadio 22 @û{ò╢@<:#240,9360>Define LogicRadio 23 @û{ò╢@<:#250,9360>Define FinanSect "<:f,1élér û╛Æ⌐,>ìαû▒è╓Éö<:f>" 'Financial" @û{ò╢@<:#250,9360>Define StatSect "<:f,1élér û╛Æ⌐,>ÄZÅpè╓Éö"<:f> 'Statistical" @û{ò╢@<:#250,9360>Define MathSect "<:f,1élér û╛Æ⌐,>ô¥îvè╓Éö<:f>" 'Mathematical" @û{ò╢@<:#250,9360>Define LogicSect "<:f,1élér û╛Æ⌐,>ÿ_ù¥è╓Éö"<:f> 'Logical" @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>Define IniName "AmiCalc.ini" @û{ò╢@<:#240,9360>Define Delimiter "~" @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>EnableWindowIns(Hdlg,0) @û{ò╢@<:#240,9360>Mac = GetRunningMacroFile$() @û{ò╢@<:#226,9360>SetDlgCallBack(FinancialRadio,"{Mac}!RadioCall") @û{ò╢@<:#240,9360>SetDlgCallBack(StatRadio,"{Mac}!RadioCall") @û{ò╢@<:#240,9360>SetDlgCallBack(MathRadio,"{Mac}!RadioCall") @û{ò╢@<:#240,9360>SetDlgCallBack(LogicRadio,"{Mac}!RadioCall") @û{ò╢@<:#240,9360>SetDlgCallBack(0,"{Mac}!InitCall") @û{ò╢@<:#240,9360>SetDlgCallBack(9000,"{Mac}!RadioCall") @û{ò╢@<:#240,9360>DlgKeyInterrupt(VK_F1, "{mac}!DisplayHelp") @û{ò╢@<:#240,9360>FillEdit(20,1) @û{ò╢@<:#240,9360>Box = DialogBox(".","More") @û{ò╢@<:#240,9360>If Box = 1 @û{ò╢@<:#240,9360> ' need to paste to the edit box @û{ò╢@<:#240,9360> Text = GetDlgItemText(Hdlg, Id) @û{ò╢@<:#240,9360> Example = GetDialogField$(ExID) @û{ò╢@<:#240,9360> NewText = StrCat$(Text, Example) @û{ò╢@<:#240,9360> SetDlgItemText(Hdlg, Id, NewText) @û{ò╢@<:#240,9360>Endif @û{ò╢@<:#240,9360>EnableWindowIns(Hdlg,1) @û{ò╢@<:#240,9360>SetFocusIns(GetDlgItem(Hdlg, Id)) @û{ò╢@<:#240,9360>End Function @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @╠º▌╕╝«▌@<:#240,9360>Function InitCall(Hdlg, id, value) @û{ò╢@<:#240,9360>IgnoreKeyBoard(2) @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>FontDlg(3,Hdlg, DescID) @û{ò╢@<:#240,9360>FontDlg(3, Hdlg, ExID) @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>ManageList(Hdlg, 9000, FinanSect) @û{ò╢@<:#240,9360>Key= GetDlgItemText(Hdlg, 9000) @û{ò╢@<:#240,9360>FullText = GetProfileString$(FinanSect,Key,IniName) @û{ò╢@<:#240,9360>Example = StrField$(FullText, 2, Delimiter) @û{ò╢@<:#240,9360>Descx = StrField$(FullText, 1, Delimiter) @û{ò╢@<:#240,9360>SetDlgITemText(Hdlg, ExID,Example) @û{ò╢@<:#240,9360>SetDlgItemText(hdlg, DescID, Descx) @û{ò╢@<:#240,9360>End Function @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @╠º▌╕╝«▌@<:#240,9360>Function RadioCall(hdlg, id, value) @û{ò╢@<:#240,9360>IgnoreKeyBoard(2) @û{ò╢@<:#240,9360>If GetDlgItemText(Hdlg, FinancialRadio) @û{ò╢@<:#240,9360> Section = FinanSect @û{ò╢@<:#240,9360>ElseIf GetDlgItemText(Hdlg, MathRadio) @û{ò╢@<:#240,9360> Section = MathSect @û{ò╢@<:#240,9360>ElseIf GetDlgITemText(hdlg, StatRadio) @û{ò╢@<:#240,9360> Section = StatSect @û{ò╢@<:#240,9360>ElseIf GetDlgItemText(hdlg, LogicRadio) @û{ò╢@<:#240,9360> Section = LogicSect @û{ò╢@<:#240,9360>Endif @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>Switch Id @û{ò╢@<:#240,9360> Case 9000 @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> ' this is for the list box @û{ò╢@<:#226,9360> Key= GetDlgItemText(Hdlg, 9000) @û{ò╢@<:#240,9360> FullText = GetProfileString$(Section,Key,IniName) @û{ò╢@<:#240,9360> Example = StrField$(FullText, 2, Delimiter) @û{ò╢@<:#240,9360> Descx = StrField$(FullText, 1, Delimiter) @û{ò╢@<:#240,9360> SetDlgITemText(Hdlg, ExID,Example) @û{ò╢@<:#240,9360> SetDlgItemText(hdlg, DescID, Descx) @û{ò╢@<:#240,9360> Break; @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> Default @û{ò╢@<:#240,9360> ' this will be for any radio button @û{ò╢@<:#240,9360> ManageList(Hdlg, 9000, Section) @û{ò╢@<:#240,9360> Key= GetDlgItemText(Hdlg, 9000) @û{ò╢@<:#240,9360> FullText = GetProfileString$(Section,Key,IniName) @û{ò╢@<:#240,9360> Example = StrField$(FullText, 2, Delimiter) @û{ò╢@<:#240,9360> Descx = StrField$(FullText, 1, Delimiter) @û{ò╢@<:#240,9360> SetDlgITemText(Hdlg, ExID,Example) @û{ò╢@<:#240,9360> SetDlgItemText(hdlg, DescID, Descx) @û{ò╢@<:#240,9360> Break; @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>EndSwitch @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360>End Function @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @╠º▌╕╝«▌@<:#240,9360>Function ManageList(Hdlg, id, Section) @û{ò╢@<:#240,9360>DefStr KeyName; @û{ò╢@<:#240,9360>AppSendMessage(GetDlgItem(Hdlg, 9000),LB_RESETCONTENT,0,0) @û{ò╢@<:#240,9360>AllKeys = GetProfileString$(Section,0,IniName) @û{ò╢@<:#240,9360>Field = 1 @û{ò╢@<:#240,9360>While -1 != Assign(&KeyName, StrField$(AllKeys, Field, "~")) @û{ò╢@<:#240,9360> If KeyName <;>"" @û{ò╢@<:#240,9360> SetDlgItemText(Hdlg, 9000, KeyName) @û{ò╢@<:#240,9360> Endif @û{ò╢@<:#240,9360> Field = Field + 1 @û{ò╢@<:#240,9360>Wend @û{ò╢@<:#240,9360>End function @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360><:f200,1û╛Æ⌐,> <:#240,9360><:f200,1û╛Æ⌐,>DIALOG More <:#226,9360><:f200,1û╛Æ⌐,>-2134376448 13 62 28 187 117 "" "" "üùè╓ÉöêΩùù" <:#240,9360><:f200,1û╛Æ⌐,>FONT 8 "System" <:#240,9360><:f200,1û╛Æ⌐,>7 12 50 10 20 1342242825 "button" "ìαû▒(\036F\037╗)" 0 <:#240,9360><:f200,1û╛Æ⌐,>7 24 50 10 21 1342242825 "button" "ÄZÅp(\036S\037╝)" 0 <:#240,9360><:f200,1û╛Æ⌐,>7 34 54 10 22 1342242825 "button" "ô¥îv(\036M\037─)" 0 <:#240,9360><:f200,1û╛Æ⌐,>7 45 50 10 23 1342242825 "button" "ÿ_ù¥(\036L\037█)" 0 <:#240,9360><:f200,1û╛Æ⌐,>79 14 58 40 9000 1352728579 "listbox" "" 0 <:#240,9360><:f200,1û╛Æ⌐,>7 56 176 24 30 1342308359 "button" "ùß" 0 <:#240,9360><:f200,1û╛Æ⌐,>7 82 176 32 31 1342308359 "button" "Éαû╛" 0 <:#240,9360><:f200,1û╛Æ⌐,>8 68 174 9 8010 1342177280 "static" "text" 0 <:#240,9360><:f200,1û╛Æ⌐,>8 93 174 20 1001 1342177280 "static" "text" 0 <:#240,9360><:f200,1û╛Æ⌐,>4 2 44 9 1000 1342177280 "static" "Äφù▐:" 0 <:#226,9360><:f200,1û╛Æ⌐,>78 2 40 9 1002 1342177280 "static" "@è╓Éö:" 0 <:#240,9360><:f200,1û╛Æ⌐,>143 2 40 13 1 1342373889 "button" "æ}ôⁿ" 0 <:#240,9360><:f200,1û╛Æ⌐,>143 18 40 13 2 1342373888 "button" "╖¼▌╛┘" 0 <:#226,9360><:f200,1û╛Æ⌐,>END DIALOG<:f> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#240,9360> @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>DIALOG Deprec @û{ò╢@<:#404,9360><:f,1élér û╛Æ⌐,>-2134376448 11 56 53 226 78 "" "" "üùè╓ÉöëëÄZ"'Solve @Function" @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>FONT 8 "System" '"Helv" @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>5 16 162 12 8000 1350631552 "edit" "" 0 @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>181 4 40 14 1 1342373889 "button" "<:f,1élér û╛Æ⌐,>ÅIù╣" 0 'Done @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>5 4 146 8 1001 1342177280 "static" "" 0 @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>173 64 46 8 8004 1342177281 "static" "" 0 @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>171 49 50 27 20 1342308359 "button" "" 0 @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>5 35 32 10 1002 1342177280 "static" "<:f><:f,1élér û╛Æ⌐,>ùßéªé╬:" 0 <:f><:f,1élér û╛Æ⌐,>'Example<:f> @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>34 35 128 18 1003 1342177280 "static" "text" 0 @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>181 20 40 14 3 1342373888 "button" "║╦▀░" 0 <:f,1élér û╛Æ⌐,>'Copy @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>185 54 30 8 1000 1342177280 "static" "<:f><:f,1élér û╛Æ⌐,>îïë╩:" 0 <:f><:f,1élér û╛Æ⌐,>'Answer<:f> @û{ò╢@<:#404,9360><:f,1élér û╛Æ⌐,>170 36 51 14 22 1342373888 "button" "@<:f,1élér û╛Æ⌐,>è╓Éö(\036F\037╠)..." 0 '&Functions @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>5 56 159 17 1004 1342177280 "static" "text" 0 @û{ò╢@<:#202,9360><:f,1élér û╛Æ⌐,>END DIALOG<:f> > [Embedded] 00024298 > [macsum] 13 Main 0 0 5 17 DataChange 477 3 4 39 InitDlg 731 3 2 55 FunButton 980 3 1 68 DisplayHelp 1077 0 4 77 CellEngine 1263 2 9 93 FontDlg 2229 3 5 170 DoIt 3030 2 6 226 InitCall 3539 3 5 269 RadioCall 3832 3 6 286 ManageList 4548 3 4 327 More 4820 0 -1 343 Deprec 5545 0 -1 363 [macse] 14 Main 0 802 13 8 2 16 FontDlg 1 0 0 16 CellEngine 1 0 0 31 1001 "ÉöÄ«é⌐üùè╓Éöé≡ôⁿù═é╡é─é¡é╛é│éó" 0 31 1003 "ÄOé┬é╠Éöé╠ìçîvé≡éRö{é╖éΘé╚éτüA@sum(12,22,34)*3é╞ôⁿù═" 0 31 1004 "üùè╓Éöé╠âèâXâgé⌐éτÉöÄ«é╔æ}ôⁿé╖éΘé▒é╞é¬é┼é½é▄é╖" 0 41 0 "{2}!InitDlg" 0 41 22 "{2}!FunButton" 0 41 8000 "{2}!DataChange" 0 47 112 "{2}!DisplayHelp" 0 26 "." "Deprec" 13 8 3 6 3 5 3 18 0 11 00000428 0 27 8004 13 8 4 0 1038 "{4}" 1 16 FontDlg 4 0 0 16 CellEngine 0 0 6 0 15 9 14 DataChange 0 32 2 0 42 "{0}" 8000 13 8 5 16 CellEngine 3 "@IF({5}<<1E49,@Round({5},2),@ERR)" 13 8 6 0 277 "{6}" 13 11 00000219 6 6 5 1 4 0 8 6 0 19 "" "" 2 "{6}" 13 0 43 "{0}" 8004 [X] 10 00000242 0 43 "{0}" 8004 "{6}" 6 3 15 9 14 InitDlg 0 32 2 0 296 1 5 1000 8 4 5 1004 6 4 18 2 12 00000120 10 00000159 5 1 6 4 3 0 8 4 10 00000042 16 FontDlg 3 "{0}" "{4}" 10 00000087 16 FontDlg 3 "{0}" 8000 0 44 "{0}" 8000 13 0 1036 [X] 1045 120 0 0 296 0 6 3 15 9 14 FunButton 16 DoIt "{0}" 8000 0 42 "{0}" 8000 13 16 DataChange "{0}" 8000 [X] 6 3 15 9 14 DisplayHelp 0 284 "user,FindWindow,HCC" "AmiProWndA" 0 13 8 1 0 798 13 0 16 [X] "HelpPack.hlp" 13 8 2 5 100 8 3 0 284 "user,WinHelp,HHCHJ" "{1}" "{2}" 1 "{3}" 6 0 15 9 14 CellEngine 0 802 13 8 6 0 16 "{6}" "hIstance" 13 8 7 0 798 13 8 8 5 1 6 0 18 0 11 00000446 0 297 "{8}LTSCE01.DLL" "CECreateInstance" "HO" 13 8 9 6 9 5 0 18 0 11 00000276 0 3 "LTSCE01.DLLé¬î⌐é┬é⌐éΦé▄é╣é± Windows├▐¿┌╕─╪░é╔║╦▀░é╡é─é¡é╛é│éó" 5 -1 15 9 0 284 "LTSCE01.DLL,CECREATEINSTANCE,HO" &3 13 8 10 0 271 "{7}" 1 0 271 "{6}LibId" 1 0 264 "{6}Libid" "{9}" 0 264 "{7}" "{3}" 6 3 15 9 10 00000954 10 00000954 5 2 6 0 18 0 11 00000550 0 271 "{7}" 1 0 265 "{7}" 13 8 3 6 3 15 9 10 00000954 10 00000954 5 3 6 0 18 0 11 00000705 0 271 "{7}" 1 0 265 "{7}" 13 8 3 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{3}" "{1}" &4 6 4 15 9 10 00000954 10 00000954 5 0 6 0 18 0 11 00000954 0 271 "{7}" 1 0 271 "{6}LibId" 1 0 265 "{7}" 13 8 3 0 265 "{6}LibId" 13 8 9 6 3 11 00000897 0 284 "LTSCE01.DLL,CEDESTROYINSTANCE,HH" "{3}" 0 298 "{9}" 0 266 "{7}" 0 266 "{6}LibId" 10 00000954 10 00000954 6 2 15 9 14 FontDlg 5 1 6 0 18 0 11 00000259 0 284 "gdi,CreateFont,HHHHHHHHHHHHHHC" 13 0 0 0 400 0 0 0 128 0 0 0 0 "System" 13 8 4 0 271 "FontHandle" 1 6 4 11 00000221 0 264 "FontHandle" "{4}" 6 4 15 9 10 00000233 5 0 15 9 10 00000789 10 00000789 5 2 6 0 18 0 11 00000385 0 265 "FontHandle" 13 8 5 6 5 11 00000360 6 5 15 9 10 00000372 5 0 15 9 10 00000789 5 3 6 0 18 0 11 00000600 0 265 "FontHandle" 13 8 5 6 5 11 00000562 0 44 "{1}" "{2}" 13 8 6 0 284 "user,SendMessage,HHHHJ" "{6}" 48 "{5}" 0 5 1 15 9 10 00000574 5 0 15 9 10 00000789 10 00000789 5 4 6 0 18 0 11 00000789 0 265 "FontHandle" 13 8 5 6 5 11 00000734 0 284 "gdi,DeleteObject,HH" "{5}" 5 1 8 7 10 00000744 5 0 8 7 0 266 "FontHandle" 6 7 15 9 10 00000789 6 3 15 9 14 DoIt 0 284 "User,EnableWindow,AHA" "{0}" 0 0 802 13 8 3 0 41 20 "{3}!RadioCall" 0 41 21 "{3}!RadioCall" 0 41 22 "{3}!RadioCall" 0 41 23 "{3}!RadioCall" 0 41 0 "{3}!InitCall" 0 41 9000 "{3}!RadioCall" 0 47 112 "{3}!DisplayHelp" 0 31 20 1 0 26 "." "More" 13 8 4 6 4 5 1 18 0 11 00000406 0 42 "{0}" "{1}" 13 8 5 0 27 8010 13 8 6 0 16 "{5}" "{6}" 13 8 7 0 43 "{0}" "{1}" "{7}" 0 284 "User,EnableWindow,AHA" "{0}" 1 0 44 "{0}" "{1}" 13 0 284 "user,SetFocus,HH" [X] 6 2 15 9 14 InitCall 0 32 2 16 FontDlg 3 "{0}" 1001 16 FontDlg 3 "{0}" 8010 16 ManageList "{0}" 9000 "ìαû▒è╓Éö" 0 42 "{0}" 9000 13 8 4 0 286 "ìαû▒è╓Éö" "{4}" "AmiCalc.ini" 13 8 5 0 20 "{5}" 2 "~" 13 8 6 0 20 "{5}" 1 "~" 13 8 7 0 43 "{0}" 8010 "{6}" 0 43 "{0}" 1001 "{7}" 6 3 15 9 14 RadioCall 0 32 2 0 42 "{0}" 20 13 11 00000086 7 "ìαû▒è╓Éö" 8 4 10 00000265 0 42 "{0}" 22 13 11 00000150 7 "ô¥îvè╓Éö" 8 4 10 00000265 0 42 "{0}" 21 13 11 00000214 7 "ÄZÅpè╓Éö" 8 4 10 00000265 0 42 "{0}" 23 13 11 00000265 7 "ÿ_ù¥è╓Éö" 8 4 5 9000 6 1 18 0 11 00000491 0 42 "{0}" 9000 13 8 5 0 286 "{4}" "{5}" "AmiCalc.ini" 13 8 6 0 20 "{6}" 2 "~" 13 8 7 0 20 "{6}" 1 "~" 13 8 8 0 43 "{0}" 8010 "{7}" 0 43 "{0}" 1001 "{8}" 10 00000704 10 00000704 16 ManageList "{0}" 9000 "{4}" 0 42 "{0}" 9000 13 8 5 0 286 "{4}" "{5}" "AmiCalc.ini" 13 8 6 0 20 "{6}" 2 "~" 13 8 7 0 20 "{6}" 1 "~" 13 8 8 0 43 "{0}" 8010 "{7}" 0 43 "{0}" 1001 "{8}" 10 00000704 6 3 15 9 14 ManageList 0 44 "{0}" 9000 13 0 1036 [X] 1029 0 0 0 286 "{2}" 0 "AmiCalc.ini" 13 8 5 5 1 8 6 5 -1 0 20 "{5}" "{6}" "~" 13 0 805 &4 [X] 13 18 1 11 00000260 6 4 7 "" 18 3 11 00000227 0 43 "{0}" 9000 "{4}" 6 6 5 1 3 0 8 6 10 00000105 6 3 15 9 DIALOG More -2134376448 13 62 28 187 117 "" "" "üùè╓ÉöêΩùù" FONT 8 "System" 7 12 50 10 20 1342242825 "button" "ìαû▒(\036F\037╗)" 0 7 24 50 10 21 1342242825 "button" "ÄZÅp(\036S\037╝)" 0 7 34 54 10 22 1342242825 "button" "ô¥îv(\036M\037─)" 0 7 45 50 10 23 1342242825 "button" "ÿ_ù¥(\036L\037█)" 0 79 14 58 40 9000 1352728579 "listbox" "" 0 7 56 176 24 30 1342308359 "button" "ùß" 0 7 82 176 32 31 1342308359 "button" "Éαû╛" 0 8 68 174 9 8010 1342177280 "static" "text" 0 8 93 174 20 1001 1342177280 "static" "text" 0 4 2 44 9 1000 1342177280 "static" "Äφù▐:" 0 78 2 40 9 1002 1342177280 "static" "@è╓Éö:" 0 143 2 40 13 1 1342373889 "button" "æ}ôⁿ" 0 143 18 40 13 2 1342373888 "button" "╖¼▌╛┘" 0 DIALOG Deprec -2134376448 11 56 53 226 78 "" "" "üùè╓ÉöëëÄZ" FONT 8 "System" 5 16 162 12 8000 1350631552 "edit" "" 0 181 4 40 14 1 1342373889 "button" "ÅIù╣" 0 5 4 146 8 1001 1342177280 "static" "" 0 173 64 46 8 8004 1342177281 "static" "" 0 171 49 50 27 20 1342308359 "button" "" 0 5 35 32 10 1002 1342177280 "static" "ùßéªé╬:" 0 34 35 128 18 1003 1342177280 "static" "text" 0 181 20 40 14 3 1342373888 "button" "║╦▀░" 0 185 54 30 8 1000 1342177280 "static" "îïë╩:" 0 170 36 51 14 22 1342373888 "button" "@è╓Éö(\036F\037╠)..." 0 5 56 159 17 1004 1342177280 "static" "text" 0 00024323